package com.jz.jingying.mapper.sqlServer;

import com.jz.jingying.bean.TBodychecklastrecord;
import com.jz.jingying.bean.TCollectionrecord;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zyl
 * @since 2019-03-21
 */
public interface TCollectionrecordMapper extends BaseMapper<TCollectionrecord> {
    @Select("SELECT COUNT(*) FROM T_CollectionRecord where CollectionDate >='2016-01-01 00:00:00' ")
    int selectTCollectionCount();
    List<TCollectionrecord> selectTCollectionrecord(@Param("pageSize") int pageSize, @Param("currentPage") int currentPage);
    List<TCollectionrecord> getCollectionRecord(TCollectionrecord collectionRecord);
    void  addCollectionRecord(TCollectionrecord collectionRecord);
    void  updateCollectionRecord(TCollectionrecord collectionRecord);
    List<TCollectionrecord> getCollectionRecordByCondition(@Param("condition")String condition);
    List<TCollectionrecord>  getCardIdByCondition(@Param("condition")String condition);
}
